/*
 * @Author: 专送Pro
 * @Date: 2019-08-23 13:17:18
 * @LastEditors  : wuzhen
 * @LastEditTime : 2020-01-13 15:55:04
 * @Description: 配置文件
 */
/* eslint-disable */
import { removeUserFromGroup } from "@/request/api";
export default {
  data() {
    return {
      searchProps: [
        {
          label: "用户ID",
          type: "text",
          key: "userid",
          placeholder: "群成员ID"
        }
     
      ],
      columns: [
        {
          title: "群成员ID",
          width: 120,
          key: "userid"
        },
        {
          title: "群成员昵称",
          key: "username"
        },
        {
          title: "是否消息免打扰",
          render: (h, params) => {
            const row = params.row;
            return h(
              "Tag",
              {
                props: {
                  color: String(row.syssetting).startsWith("1")
                    ? "error"
                    : "success"
                }
              },
              String(row.syssetting).startsWith("1") ? "是" : "否"
            );
          }
        },
        {
          title: "加入时间",
          render: (h, params) => {
            const row = params.row;
            return h("span", this.$fmtMoment(row.jointime) || "--");
          }
        },
        {
          title: "操作",
          width: 160,
          render: (h, params) => {
            const row = params.row;
            return h(
              "span",
              {
                class: {
                  error: true
                },
                on: {
                  click: async () => {
                    this.messageids = [row.messageid];
                    this.onDelete(row);
                  }
                }
              },
              "移除"
            );
          }
        }
        // {
        //   title: "操作",
        //   slot: "action"
        // }
      ],
      handleBtn: [
        {
          text: "移除",
          btnType: "action"
        }
      ]
    };
  }
};
